package com.zhuang.reggie;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;

//指定原生Servlet组件都放在哪里，并这些组件扫描进来，当不指定扫描路径时默认扫描@ServletComponentScan所在包的子包
@ServletComponentScan
@SpringBootApplication
@Slf4j
@EnableTransactionManagement//开启注解事务的支持
@EnableCaching //开启SpringCache注解方式的缓存功能
public class ReggieTakeOutApplication {

    public static void main(String[] args) {
        SpringApplication.run(ReggieTakeOutApplication.class, args);
        log.info("项目启动成功...");
    }

}